package thread;

class Singleton {
    private static Singleton instance = new Singleton();

    public static Singleton getInstance() {
        return instance;
    }

    private Singleton() {};
}

public class ThreadDemo26 {
    public static void main(String[] args) {
        //Singleton s = new Singleton();
        Singleton s = Singleton.getInstance();
    }
}
